package com.atguigu.guli.service.edu.feign;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.edu.feign.fallback.OssClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-oss",fallback = OssClientFallback.class)
public interface OssClient {
    @PostMapping("admin/oss/test/{username}/{password}")
    R test(@RequestParam String username, @RequestParam String password) ;

    @PostMapping("admin/oss/test2")
    R test2(@RequestBody R r) ;

    @DeleteMapping("admin/oss/delete")
    R delete(@RequestParam String path,@RequestParam String module) ;
}
